package com.recursiveflow.shared.view.shapes 
{    import flash.display.DisplayObjectContainer;

    import com.recursiveflow.shared.util.GraphicsUtil;    

    public class GradientBackground extends Background
    {
        private var colourA : Number;
        private var colourB : Number;
        public function GradientBackground(parent : DisplayObjectContainer, w : Number, h : Number, colA : Number = 0x000000, colB : Number = 0x888888)
        {
            this.colourA = colA;
            this.colourB = colB;
                        super(parent, w, h);	
        }

        protected override function draw(w : Number, h : Number, colour : Number, alpha : Number) : void
        {
            GraphicsUtil.fillGradientBox(this, w, h, [colourA , colourB]);
        }
    }}